// import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs';

// 对外暴露配置路由(常量路由)
export const constantRoute = [
  {
    //首页
    path: '/firstpage',
    component: () => import('@/views/firstpage/index.vue'),
    name: 'firstpage',
    meta: {
      title: '实验室介绍',
      hidden: false,
      icon: 'House',
    },

  },
  {
    // 登录
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login', //命名路由
    meta: {
      title: '登录', //菜单标题
      hidden: true, //代表路由标题在菜单中是否隐藏
      icon: 'Promotion', //菜单文字左侧图标，支持element-plus全部图标
    },
  },

  {
    //登录成功以后展示数据的路由
    path: '/',
    component: () => import('@/layout/index.vue'),
    name: 'layout',
    meta: {
      title: '',
      hidden: false,
      icon: '',
    },
    redirect: '/home',
    children: [
      

      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: 'HomeFilled',
        },
      },
    ],
  },

  {
    //登陆成功：展示数据的路由
    path: '/acl',
    component: () => import('@/layout/index.vue'),
    name: 'acl',
    meta: {
      title: '展示页信息管理',
      hidden: false,
      icon: 'Grid',
    },
    redirect: '/acl/team',
    children: [
      {
        path: '/acl/team',
        component: () => import('@/views/acl/team/index.vue'),
        name: 'team',
        meta: {
          title: '团队介绍',
          hidden: false,
          icon: 'Avatar',
        },
      },

      {
        path: '/acl/exp',
        component: () => import('@/views/acl/exp/index.vue'),
        name: 'exp',
        meta: {
          title: '优异战绩',
          hidden: false,
          icon: 'Histogram',
        },
      },

      {
        path: '/acl/intro',
        component: () => import('@/views/acl/intro/index.vue'),
        name: 'intro',
        meta: {
          title: '成员介绍',
          hidden: false,
          icon: 'User',
        },
      },
    ],
  },

  {
    // 404
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: {
      title: '404',
      hidden: true,
      icon: 'DocumentDelete',
    },
  },

  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
    meta: {
      title: '任意路由',
      hidden: true,
      icon: 'DataLine',
    },
  },

  
]
